package com.zx.sdk.listener;

import com.zx.sdk.league.member.BaseLeagueMember;
import com.zx.sdk.model.AdInfo;
import com.zx.sdk.util.LogHelper;

public abstract class BaseZxShortVideoListener implements ZxShortVideoListener {

    @Override
    public void onPageEnter(BaseLeagueMember<?, ?, ?, ?,?> member, AdInfo adInfo) {
        LogHelper.d("【联盟=" + member.getName()+"】" + " 短视频Fragment onPageEnter", "appId=" + adInfo.getMapAppid(), "pid="+ adInfo.getMapPid());
        onPageEnter();
    }

    @Override
    public void onPageResume(BaseLeagueMember<?, ?, ?, ?,?> member, AdInfo adInfo) {
        LogHelper.d("【联盟=" + member.getName()+"】" + " 短视频Fragment onPageResume", "appId=" + adInfo.getMapAppid(), "pid="+ adInfo.getMapPid());
        onPageResume();
    }

    @Override
    public void onPagePause(BaseLeagueMember<?, ?, ?, ?,?> member, AdInfo adInfo) {
        LogHelper.d("【联盟=" + member.getName()+"】" + " 短视频Fragment onPagePause", "appId=" + adInfo.getMapAppid(), "pid="+ adInfo.getMapPid());
        onPagePause();
    }

    @Override
    public void onPageLeave(BaseLeagueMember<?, ?, ?, ?,?> member, AdInfo adInfo) {
        LogHelper.d("【联盟=" + member.getName()+"】" + " 短视频Fragment onPageLeave", "appId=" + adInfo.getMapAppid(), "pid="+ adInfo.getMapPid());
        onPageLeave();
    }

    public abstract void onPageEnter();


    public abstract void onPageResume();


    public abstract void onPagePause();


    public abstract void onPageLeave();

}
